package com.bdzl.admin.service.data.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bdzl.admin.dao.data.SubscriptionDao;
import com.bdzl.pub.entity.data.SubscriptionDO;
import com.bdzl.admin.service.data.SubscriptionService;



@Service
public class SubscriptionServiceImpl implements SubscriptionService {
	@Autowired
	private SubscriptionDao subscriptionDao;
	
	@Override
	public SubscriptionDO get(Integer id){
		return subscriptionDao.get(id);
	}
	
	@Override
	public List<SubscriptionDO> list(Map<String, Object> map){
		return subscriptionDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return subscriptionDao.count(map);
	}
	
	@Override
	public int save(SubscriptionDO subscription){
		return subscriptionDao.save(subscription);
	}
	
	@Override
	public int update(SubscriptionDO subscription){
		return subscriptionDao.update(subscription);
	}
	
	@Override
	public int remove(Integer id){
		return subscriptionDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return subscriptionDao.batchRemove(ids);
	}
	
}
